package org.cybot.entities;

import java.util.ArrayList;
import java.util.List;

public class Team {

	private String name;
	private List<Cyclist> cyclists;

	public String getName() {
		return name;
	}

	public List<Cyclist> getCyclists() {
		return cyclists;
	}

	public Team(String name, List<Cyclist> cyclists) {
		super();
		this.name = name;
		this.cyclists = new ArrayList<Cyclist>();
		for (Cyclist cyclist : cyclists) {
			this.cyclists.add(new Cyclist(cyclist.getName(), this, cyclist
					.getCharacteristics()));
		}
	}

}
